<!--{template header}-->
<link href="resource/css/public.css" rel="stylesheet" type="text/css">
<div class="wrapper">
<!--页面头部-->
<header class="clearfix page_header">
    <div class="container_24 page_title pt_15 pb_5">
  		<h2 class="title"><b>{$_lang['perfect_data']}</b></h2>
    </div>
</header>
<!--end 页面标题--><!--主内容-->

<section class="clearfix content">
	
    <div class="container_24 ">
        <div class="box clearfix">
            <div class="grid_24">
            	<div class="filter box normal po_re">
            		<div class="inner">
            			<!--star 进度选项-->
						<div class="step_progress clearfix">
							<div class="step step1 ">
							<span class="icon32 pub">1</span>
							<strong>{$_lang['one_step']}</strong>
							{$_lang['choose_identity']}
							</div>
							<div class="step step2 selected">
							<span class="icon32 pub">2</span>
							<strong>{$_lang['two_step']}</strong>
							{$_lang['fill_data']}
							</div>
							<div class="step step3 ">
							<span class="icon32 pub">3</span>
							<strong>{$_lang['three_step']}</strong>
							{$_lang['data_success']}
							</div>
						</div>
						<!--end 进度选项-->
						
						<div class="step1_detail pl_5 pr_5 clearfix">
							<div class="messages m_infor ">
								
								<span class="icon16">info</span>{$_lang['company_tips']}								
								<a class="close" href="javascript:;">×</a>
							</div>
							
							<div class="prefix_1 suffix_1 clearfix">
								<form action="index.php?do=register_wizard&step={$step}" name="frm" id="frm" method="post" class="" enctype="multipart/form-data">
									<input type="hidden" name="formhash" value="{FORMHASH}">	
									<input type="hidden" name="refer"  value="$refer">
									<input type="hidden" name="pk[uid]" value="{$uid}">							
									<input type="hidden" name="conf[user_type]" value="2"/>
									<a id="test"></a>
									<div class="form_box pt_20">										 
										  <div class="rowElem clearfix">						                    
											<label class="grid_5 t_r">
						                     	 {$_lang['belong_indus']}{$_lang['zh_mh']}
						                    </label>
							              	<div class="fl_l">
						                        <select name="conf[indus_pid]" id="indus_pid" title="{$_lang['choose_indus']}" style="width:135px;" onchange="showIndus(this.value)" limit = "required:true;between:5-10" msg = '{$_lang['indus_not_choose']}' msgArea="span_indus">
						                            <option value="">{$_lang['choose_indus']}</option>
						                      		{loop $indus_p_arr $v}
														 <option value="{$v['indus_id']}" {if $user_info['indus_pid']==$v['indus_id']}selected{/if}>{$v['indus_name']}</option>
													{/loop} 
												 </select>
												
												 
						                    
						                    <span id="reload_indus">
						                        <select name="conf[indus_id]" id="indus_id" style="width:140px;" limit = "required:true;between:5-10" msg='{$_lang['sub_not_choose']}' title='{$_lang['choose_sub']}' msgArea="span_indus"><span id="span_indus"></span>
						                            <option value="">{$_lang['choose_sub']}</option>
													{if $user_info['indus_id']}}
													{loop $indus_arr $k $v}
						                           		 <option value="{$v['indus_id']}" {if $user_info['indus_id']==$v['indus_id']}selected{/if}>{$v['indus_name']}</option>
													{/loop}
													{/if}
						                        </select>
						                    </span>
											
											<div id="span_indus"></div>		
											</div>									
						                </div>
										<div class="rowElem clearfix">
											<label class="grid_5 t_r">{$_lang['company']}{$_lang['name']}{$_lang['zh_mh']}</label>											
												<input id="company" name="fds[company]"
												 type="text" msgarea="span_company" msg="{$_lang['company_name_error']}" 
												 limit="required:true;len:4-100" value="$enter_info['company']" size="35"  
												 style="width: 350px;" original-title="{$_lang['company']}{$_lang['name']}" {if $real_pass}disabled="disabled"  style="color:#999"{/if}>
												<span id="span_company"></span>
											<div class="clear"></div>						
										</div>
										<div class="rowElem clearfix">
											<label class="grid_5 t_r">{$_lang['licen_num']}{$_lang['zh_mh']}</label>											
												<input id="licen_num" name="fds[licen_num]"
												 type="text" msgarea="span_licen_num" msg="{$_lang['licen_num_error']}" 
												 limit="required:true;len:5-30" value="$enter_info['licen_num']" size="35"  
												 style="width: 350px;" original-title="{$_lang['company']}{$_lang['licen_num']}" onkeyup="clearstr(this)">
												<span id="span_licen_num"></span>
											<div class="clear"></div>						
										</div>
										<div class="rowElem clearfix">
											<label class="grid_5 t_r">{$_lang['legal']}{$_lang['zh_mh']}</label>											
												<input id="legal" name="fds[legal]"
												 type="text" msgarea="span_legal" msg="{$_lang['legal_error']}" 
												 limit="required:true;len:2-10" value="$enter_info['legal']" size="35"  
												 style="width: 350px;" original-title="{$_lang['company']}{$_lang['legal']}">
												<span id="span_legal"></span>
											<div class="clear"></div>
										</div>
										<div class="rowElem clearfix">
											<label class="grid_5 t_r">{$_lang['staff_num']}{$_lang['zh_mh']}</label>											
												<input id="staff_num" name="fds[staff_num]"
												 type="text" msgarea="span_staff_num" msg="{$_lang['staff_num_error']}" 
												 limit="required:false;type:int;between:1-10000;len:1-5" value="$enter_info['staff_num']" size="35"  
												 style="width: 350px;" original-title="{$_lang['company']}{$_lang['staff_num']}">
												<span id="span_staff_num"></span>
											<div class="clear"></div>
										</div>
										<div class="rowElem clearfix">
											<label class="grid_5 t_r">{$_lang['run_years']}{$_lang['zh_mh']}</label>											
												<input class="fl_l" id="run_years" name="fds[run_years]"
												 type="text" msgarea="span_run_years" msg="{$_lang['run_years_error']}" 
												 limit="required:false;type:int;between:1-100;len:1-3" value="$enter_info['run_years']" size="33"  
												 style="width: 350px;" original-title="{$_lang['company']}{$_lang['run_years']}">
												 <span class="fl_l ml_5">{$_lang['year']}</span>
												<span id="span_run_years"></span>
											<div class="clear"></div>
										</div>
										<div class="rowElem clearfix">
											<label class="grid_5 t_r">{$_lang['company_url']}{$_lang['zh_mh']}</label>											
												<input id="url" name="fds[url]"
												 type="text" msgarea="span_url" msg="{$_lang['company_url_error']}" 
												 limit="required:false;type:url" size="35"  value="$enter_info['url']"
												 style="width:350px;" original-title="{$_lang['company']}{$_lang['company_url']}">
												<span id="span_url"></span>(格式: http://www.sitename.com)
											<div class="clear"></div>
										</div>
										<div class="rowElem clearfix">
											<label class="grid_5 t_r">
						                     	  {$_lang['location']}{$_lang['zh_mh']}
						                    </label>
						                   		<select name="province" id="province"></select><select name="city" id="city"></select><select name="area"></select>
			 							</div>
										<div class="rowElem clearfix">
											<label class="grid_5 t_r">{$_lang['detail_address']}{$_lang['zh_mh']}</label>											
												<input id="address" name="conf[address]"
												 type="text" msgarea="span_address" msg="{$_lang['detail_address_error']}" 
												 limit="required:true;len:5-" size="35" value="$user_info['address']" 
												 style="width:350px;" original-title="{$_lang['company']}{$_lang['detail_address']}">
												<span id="span_address"></span>
											<div class="clear"></div>
										</div>
										<div class="rowElem clearfix">
											<label class="grid_5 t_r">{$_lang['contact']}{$_lang['zh_mh']}</label>											
												<input id="truename" name="conf[truename]"
												 type="text" msgarea="span_truename" msg="{$_lang['contact_at_most_ten']}" 
												 limit="required:true;len:2-10" size="35" value="$user_info['truename']" 
												 style="width:350px;" original-title="联系人姓名">
												<span id="span_truename"></span>
											<div class="clear"></div>
										</div>
										<div class="rowElem clearfix">
                                            <label class="grid_5 t_r">
                                                {$_lang['mobile']}{$_lang['zh_mh']}
                                            </label>
                                            <input name="conf[mobile]" id="mobile" type="text" value="{$user_info['mobile']}" title="{$_lang['fill_in_your_own_phonenum']}" limit="required:true;type:mobileCn" msg="{$_lang['wrong_format_about_phonenum']}" msgArea="span_mobile" size="35" />
											<span id="span_mobile"></span>
                                            <div class="clear"></div>                          
                                        </div>
										<div class="rowElem clearfix">
                                            <label class="grid_5 t_r">
                                                E_mail{$_lang['zh_mh']}
                                            </label>
                                            <input name="conf[email]" id="email" type="text" value="{$user_info['email']}" title="{$_lang['fill_in_your_own_email']}" limit="required:false;type:email" msg="{$_lang['wrong_format_about_mailaddress']}" msgArea="span_email" size="39" />
											<span class=" t_r" id="span_email"></span>
                                            <div class="clear"></div>                          
                                        </div>
										<div class="rowElem clearfix">                                            
                                                <label class="grid_5 t_r">
                                                 	{$_lang['about_us']}{$_lang['zh_mh']}
                                                </label>
												<div class="fl_l">
	                                                <textarea cols="80" rows="8" id="tar_content" msgArea="content_msg" name="conf[summary]" class="xheditor-simple {urlBase:'$_K['siteurl']/',html5Upload:false,upImgUrl:'index.php?do=ajax&view=upload&file_type=att',skin:'nostyle'}" style="width:400px;">$user_info['summary']</textarea>
													<div style="display:none;"><span id="content_msg"></span></div>
												</div>                                           
                                            <div class="grid_6  ui_note">{$_lang['about_us_tips']} </div>
                                        </div>
										
										<div class="rowElem clearfix form_button">
											<input type="hidden" value="1" name="sbt_add" original-title="">
											<button class="button" onclick="save();" value="{$_lang['save']}" name="btn_add" type="button"><span class="check icon"></span>{$_lang['save']}</button>
										</div>
										
										</div>	
								</form>
							</div>
						</div>
            		</div>
                </div>
            </div>
		</div>
	</div>
</section>
</div>
<script type="text/javascript" src="resource/js/xheditor/xheditor.js"></script>
<script type="text/javascript">
	 $(function(){
	 	editor = $("#tar_content").xheditor();
	 })
</script>
 <script type="text/javascript" > 
	In('form','pcas',function(){
	    new PCAS("province","city","area");
	});  
	

$(function(){ 
	$("#tar_content").blur(function(){		
		contentCheck('tar_content',"{$_lang['about_us']}",10,1000);
	})
})
function showIndus(indus_pid){
	if(indus_pid){
		$.post("index.php?do=ajax&view=indus",{indus_pid: indus_pid}, function(html){
			var str_data = html;
			if (trim(str_data) == '') {
				$("#indus_id").html("<option value='-1'>{$_lang['choose_sub']}</option>");
			}
			else {
				$("#indus_id").html(str_data);
			}
		},'text');
	}
}



function save(){
	var i = checkForm(document.getElementById('frm'));
	if(!i){
		return false;
	}	
	var content = contentCheck('tar_content',"{$_lang['about_us']}",10,1000);
	if(!content){
		showDialog("{$_lang['about_us']}{$_lang['between_ten_and_hundred']}",'alert',"operate_notice");return false;
	}	
	if(i&&content){
		$("#frm").submit();
	}
}
</script>		    
<!--{template footer}-->
